<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="css/api.css" />
    <style>
    html,
    body {
        background: #ff00ff;
        height: 100%;
        width: 100%;
    }
    </style>
</head>

<body>
    <br>
    <div onclick='closeFrm()'>关闭</div>
    <br>
</body>
<script type="text/javascript" src="script/api.js"></script>
<script type="text/javascript">
apiready = function() {
    alert('执行frame的ready');
};

function closeFrm() {
    api.closeFrame({});

}
</script>

</html>
